<?php

// For developers, allows you to simulate your Application
// it allows you to control all GET varibles that are
// lost while it is in the iframe enviroment

// Apps should still be tested inside of the real environment
// to check for conflicts or lags, as you have no other JS running

// The only reserved vars are devmode, devkey, sysdebug and application

// To activate System Debug JS add &sysdebug=true (NOT IMPLIMENTED YET)

$themeDir = GLconfigRead('main','themeDir');
$themeCSS = GLconfigRead('main','themeCSS');
$application = GLdatabaseRead('application','key','$_GET['application']');
$applicationExec = GLconfigReadFile('Applications/{$application}/Info.php','applicationExec');

echo '
<html>
	<head>
		<title>DEVCORE</title>
		<link rel="stylesheet" type="text/css" href="';
echo "Themes/{$themeDir}/{$themeCSS}";
echo '" />
	</head>
	<body>
		<div class="content">
			<div class="tabcontent">';
include("Applications/{$application}/{$applicationExec}");
echo '		</div>
		</div>
	</body>
</html>';

?>
